<?php
header('Content-type:text/html;charset=utf-8'); 
@mysql_connect('localhost','root','');
mysql_select_db('hdc50');
mysql_query('set names utf8');

function query($sql)
{
	$result = mysql_query($sql);
	$rows=array();
	while ($row = mysql_fetch_assoc($result)) {
		$rows[]=$row;
	}
	return $rows;
}










 ?>